﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Manage/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<QianBuo.Lottery.Web.Areas.Manage.Models.Site.ConsumptionModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	奖金、元角模式设置
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<% Html.BeginForm(); %>
<fieldset class="fieldset">
    <legend>奖金、元角模式设置</legend>
    <table class="table float_left" width="68%">
        <tr><th>模式</th><th>启用</th><th>单注金额</th><th>返点差</th></tr>
        <%for (int i = 0; i < Model.Ratios.Length; i++) %>
        <%{ %>
        <% var item = Model.Ratios[i]; %>    
        <tr>
            <td align="left">
                <%=Html.TextBoxFor(p => p.Ratios[i].Name, new { @class = "text80" })%>
                <%=Html.ValidationMessageFor(p => p.Ratios[i].Name)%>模式
            </td>
            <td><%=Html.CheckBoxFor(p => p.Ratios[i].Enable)%></td>
            <td align="left">
                <%=Html.TextBoxFor(p => p.Ratios[i].RadixMoney, new { @class = "text80" })%>
                <%=Html.ValidationMessageFor(p => p.Ratios[i].RadixMoney)%>元
            </td>
            <td align="left">
                <%=Html.TextBoxFor(p => p.Ratios[i].BackMoneyDifference, new { @class = "text80" })%>
                <%=Html.ValidationMessageFor(p => p.Ratios[i].BackMoneyDifference)%>
                <%=Html.HiddenFor(p => p.Ratios[i].ID)%>
            </td>
        </tr>
        <%} %>
    </table>
    <table class="table float_right" width="30%">
        <tr><th>模式</th><th>启用</th></tr>
        <%for (int i = 0; i < Model.WinModels.Length; i++) %>
        <%{ %>
        <% var item = Model.WinModels[i]; %>    
        <tr>
            <td align="left">
                <%=Html.TextBoxFor(p => p.WinModels[i].Name, new { @class = "text80" })%>
                <%=Html.ValidationMessageFor(p => p.WinModels[i].Name)%>模式
            </td>
            <td>
                <%=Html.CheckBoxFor(p => p.WinModels[i].Enable)%>
                <%=Html.HiddenFor(p=>p.WinModels[i].ID) %>
            </td>
        </tr>
        <%} %>
    </table>
    <table width="100%">
    <tr><td>&nbsp;</td></tr>
    <tr><td align="center">
        <input type="submit" value="保存" />&nbsp;&nbsp;&nbsp;&nbsp;<input type="reset" value="重设" />
    </td></tr>
    </table>
</fieldset>
<% Html.EndForm(); %>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="StyleAndScript" runat="server">
<style type="text/css">
    .float_left{ float:left; margin:0px;}
    .float_right{ float:right;margin:0px;}
    .float_left td,.float_right td{ padding:2px 5px; line-height:30px; height:30px;}
</style>
</asp:Content>
